# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-pygraphviz
pkgver=1.9
pkgrel=0
pkgdesc="Python interface to Graphviz"
options="!check" # FAILED (failures=11, errors=47)
url="https://pygraphviz.github.io/"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev graphviz-dev py3-setuptools"
checkdepends="py3-nose"
subpackages="$pkgname-doc"
source="https://github.com/pygraphviz/pygraphviz/archive/pygraphviz-$pkgver.tar.gz"
builddir="$srcdir/pygraphviz-pygraphviz-$pkgver"

replaces="py-pygraphviz" # Backwards compatibility
provides="py-pygraphviz=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
8753c96e1330a61ea3430f617fedae63a27cbe9ee88ff1faaa29f7db6388095301dac3aa2c453bbb95cfd3bcd94a0320bfd022523ec85cf11bbd176d5dfe7709  pygraphviz-1.9.tar.gz
"
